home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 May / SGI IRIX 6.5 Complementary Applications 2004 May.iso / dist / OpenOffice.idb / usr / OpenOffice / help / en / sbasic.jar / text / sbasic / common / 03103700.xml < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-24  |  1.7 KB  |  28 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Set Statement[Runtime]</title><meta name="filename" content="text/sbasic/common/03103700"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         p.P1{
  5.                 }
  6.         p.P2{
  7.                 }
  8.         span.T1{
  9.                 font-weight:bold;}
  10.         </style></head><body>
  11.   
  12.   
  13.   <p class="P1"/>
  14.   <p class="Head1"><a name="set"/><help:link Id="66438" xmlns:help="http://openoffice.org/2000/help">Set Statement[Runtime]</help:link></p>
  15.   <p class="Paragraph">Sets an object reference on a variable or a Property.<a name="ende"/></p>
  16.   <p class="Paragraph"><span class="T1">Syntax</span>:</p>
  17.   <p class="Paragraph">Set ObjectVar = Object <help:key-word value="Set" tag="kw66438_1" xmlns:help="http://openoffice.org/2000/help"/></p>
  18.   <p class="Paragraph"><span class="T1">Parameter</span>:</p>
  19.   <p class="Paragraph">ObjectVar: a variable or a property, which should receive an object reference.</p>
  20.   <p class="Paragraph">Object: Object, to which the variable or the <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>property should refer.</p>
  21.   <p class="P2">Example:</p>
  22.   <p class="PropText">Sub ExampleSet</p>
  23.   <p class="PropText"><text:tab-stop xmlns:text="http://openoffice.org/2000/text"/>Dim oDoc As Object</p>
  24.   <p class="PropText"><text:tab-stop xmlns:text="http://openoffice.org/2000/text"/>Set oDoc = ActiveWindow</p>
  25.   <p class="PropText"><text:tab-stop xmlns:text="http://openoffice.org/2000/text"/>Print oDoc.Name</p>
  26.   <p class="PropText">End Sub</p>
  27.   <p class="PropText"/>
  28.  </body></html>